'use strict';

const merchantInfoController = require('../../app/controller/merchantInfo.controller.js');

module.exports = function(app) {
    app.route('/merchant/get/list/:status')
        .get(merchantInfoController.getListbystatus);
    app.route('/merchant/update/:id/:status')
        .get(merchantInfoController.updateByStatus2);
    app.route('/merchant/gets')
        .get(merchantInfoController.gets);
    app.route('/merchant/pass')
        .post(merchantInfoController.pass);
    app.route('/merchant/reject')
        .post(merchantInfoController.reject);
    app.route('/merchant/register')
        .post(merchantInfoController.add);
    app.route('/merchant/check/:icnum')
        .get(merchantInfoController.check)
};